/*
 * Copyright 2007 Johan Andries
 *
 * This file is released under the LGPL v2.1.
 * 
 * This file may be redistributed under the terms of the Library GNU Public
 * License.
 */

package rubymatic;


import org.hibernate.EmptyInterceptor;

import org.jruby.runtime.builtin.IRubyObject;

public class EntityNameInterceptor extends EmptyInterceptor {
	
	public String getEntityName(Object object) {
		return ((IRubyObject)object).getType().getName().replace("::",".");
	}
}